package com.yisu.expressway.manager.core.mapper;

import com.yisu.expressway.ewf.entity.CategoryBanner;
import com.yisu.expressway.manager.domain.request.CategoryBannerRequest;

import java.util.List;

public interface CategoryBannerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CategoryBanner record);

    CategoryBanner selectByPrimaryKey(Long id);

    int updateByPrimaryKey(CategoryBanner record);

    List<CategoryBanner> getCategoryBannerByCategoryCode(CategoryBannerRequest categoryBannerRequest);

    int updateSort(CategoryBanner categoryBanner);

    int getMaxSortByCategoryCode(CategoryBannerRequest categoryBannerRequest);
}